package com.css.crm.dao.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.css.crm.dao.RegisterResendDao;
import com.css.crm.vo.RegisterResendVo;

/**
 * Implementation for RegisterResendDao
 * 
 * @author ais
 */
public class RegisterResendDaoImpl extends BaseDaoImpl implements RegisterResendDao {

	public RegisterResendDaoImpl() {
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterResendDao#getRegisterResendById(com.css.crm.vo
	 * .RegisterResendVo)
	 */
	@Override
	public RegisterResendVo getRegisterResendById(RegisterResendVo vo) {

		SqlSession session = getMyBatisSession();
		return session.selectOne("registerResend.getRegisterResendById", vo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterResendDao#deleteRegisterResendById(com.css.crm
	 * .vo.RegisterResendVo)
	 */
	@Override
	public int deleteRegisterResendById(RegisterResendVo vo) {

		SqlSession session = getMyBatisSession();
		return session.delete("registerResend.deleteRegisterResendById", vo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterResendDao#insertRegisterResend(com.css.crm.vo
	 * .RegisterResendVo)
	 */
	@Override
	public int insertRegisterResend(RegisterResendVo vo) {

		SqlSession session = getMyBatisSession();
		return session.insert("registerResend.insertRegisterResend", vo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterResendDao#updateRegisterResend(com.css.crm.vo
	 * .RegisterResendVo)
	 */
	@Override
	public int updateRegisterResend(RegisterResendVo vo) {

		SqlSession session = getMyBatisSession();
		return session.update("registerResend.updateRegisterResend", vo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.css.crm.dao.RegisterResendDao#queryRegisterResend(com.css.crm.vo.
	 * RegisterResendVo)
	 */
	@Override
	public List<RegisterResendVo> queryRegisterResend(RegisterResendVo vo) {

		SqlSession session = getMyBatisSession();
		return session.selectList("registerResend.queryRegisterResend", vo);
	}

}
